package ru.picman;

import ru.picman.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * Activity for the main menu. Launched when the App is launched.
 * @author David
 *
 */
public class PicmanMain 
			 extends Activity 
{

	
	public void onCreate(Bundle savedInstanceState) { 
		super.onCreate(savedInstanceState);
		setContentView(R.layout.picman_main);

		Button startButton = (Button) findViewById(R.id.start_button);
		startButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent(PicmanMain.this,PicmanLevels.class));
			}
		});
		Button optionsButton = (Button) findViewById(R.id.options_button);
		optionsButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent(PicmanMain.this,PicmanOptions.class));
			}
		});
		Button helpButton = (Button) findViewById(R.id.help_button);
		helpButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent(PicmanMain.this,PicmanHelp.class));
			}
		});
		Button exitButton = (Button) findViewById(R.id.exit_button);
		exitButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				System.exit(0);
			}
		});
	}
	
}